f8468a5286b3e3075f5e88544a13b1f02792e5db,normalization/src/main/java/zemberek/normalization/SingleWordSpellChecker.java,SingleWordSpellChecker,expand,#Hypothesis#String#FloatValueMap#,218

Before Change


                newHypotheses.add(hyp);
            }
        } else if (hypothesis.node.word != null)
            addHypothesis(finished, hypothesis);

        // we don't need to explore further if we reached to max penalty
        if (hypothesis.penalty >= maxPenalty)

After Change


                    newHypotheses.add(hyp);
                }
            } else if (hypothesis.node.word != null) {
                addHypothesis(hypothesis);
            }

            // we don't need to explore further if we reached to max penalty